package com.alongstudio.account.service;

import java.util.List;
import java.util.Map;

import com.alongstudio.account.commons.exception.BusinessException;
import com.alongstudio.account.entity.Account;

public interface IAccountService {
	List<Account> findAccounts(String userId, Byte type) throws BusinessException;

	String createAccount(Account account) throws BusinessException;

	boolean updateAccount(Account account) throws BusinessException;
	
	boolean deleteAccount(String id) throws BusinessException;
	
	Account findById(String id) throws BusinessException;
//	/**
//	 * 所有支出账户
//	 * @param userId
//	 * @return
//	 * @throws BusinessException
//	 */
//	List<Account> findAccountOfExpenditure(Integer userId) throws BusinessException;
//	/**
//	 * 所有收入账户
//	 * @param userId
//	 * @return
//	 * @throws BusinessException
//	 */
//	List<Account> findAccountOfIncome(Integer userId) throws BusinessException;
//	/**
//	 * 普通账户
//	 */
//	List<Account> findNormalAccounts(Integer userId, byte type)throws BusinessException;
	
	Map findInitAccounts(String userId)throws BusinessException;
}
